<template>
  <van-cell-group inset :style="groupStyle">
    <online-custom-block :widgetList="widget.childWidgetList" />
  </van-cell-group>
</template>

<script>
export default {
  name: 'onlineCustomTabs',
  props: {
    widget: {
      type: Object,
      required: true
    }
  },
  computed: {
    groupStyle () {
      return {
        'margin-top': (this.widget.props.paddingTop ? this.widget.props.paddingTop : 0) + 'px',
        'padding': (this.widget.props.padding ? this.widget.props.padding : 0) + 'px'
      }
    }
  }
}
</script>

<style>
</style>
